home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 November
/
PCWorld_2006-11_cd.bin
/
v cisle
/
pcwcleaner
/
pcwcleaner.exe
/
pcwCleaner.vbs
Wrap
Text File
|
2006-09-19
|
30KB
|
639 lines
dim winos
dim userprofile
dim batch
dim pfad
dim csid
dim dl(25)
dim done
dim alluser
Set MyFiles = CreateObject("Scripting.FileSystemObject")
set MyShell = CreateObject("Wscript.Shell")
Set myNet = WScript.CreateObject("WScript.Network")
Set myEnv = myShell.Environment("PROCESS")
pfad=myEnv("PATH")
userprofile = MyEnv("USERPROFILE")
alluser = MyEnv("ALLUSERSPROFILE")
if right(userprofile,1)<>"\" then userprofile=userprofile & "\"
myName=chr(34) & myNet.UserName & chr(34)
Done=alluser & "\pcwCleaner.Done"
on error resume next
MyFiles.DeleteFile(Done)
on error goto 0
checkversion
GetMySID userprofile
IsAdmin myname
IsKillEXE
What2Do
'------------------------------------------------------------------------------
sub MakeCleaner ()
i=msgbox("U₧ivatelskΘ jmΘno: " & myname _
& chr(13) & "Kontrola nastavenφ prßv na ·rove≥ administrßtora." _
& chr(13) & "SID pro tento ·Φet: " _
& chr(13) & csid _
& chr(13) & chr(13) & "Odpov∞zte na nßsledujφcφ dotazy." _
& chr(13) & "Na zßklad∞ odpov∞dφ se vytvo°φ dßvkov² soubor" _
& chr(13) & Batch _
& chr(13) & ", kter² se bude v budoucnu pou₧φvat pro ΦiÜt∞nφ vaÜeho systΘmu."_
& chr(13) & chr(13) & "╚iÜt∞nφ systΘmu v₧dy spouÜt∞jte p°es skript pcwCleaner.VBS.",65,"pcwCleaner 2.0: Konfigurace")
if i=2 then wscript.quit
set ClearBatch = MyFiles.CreateTextFile(Batch, True)
ClearBatch.writeline "@echo off"
ClearBatch.writeline "color FC"
ClearBatch.writeline "SET path=" & pfad
if instr(winos,"XP") then
ClearBatch.writeline "sc.exe stop SSDPSRV"
ClearBatch.writeline "sc.exe stop webclient"
ClearBatch.writeline "sc.exe stop lmhosts"
ClearBatch.writeline "sc.exe stop spooler"
end if
ClearBatch.writeline "Kill.EXE /F *xplore*"
ClearBatch.writeline "pcwKill.EXE /F *xplore*"
ClearBatch.writeline "Echo."
ClearBatch.writeline "Echo Hledßnφ soubor∙, kterΘ se majφ odstranit..."
set mydrives=myFiles.drives
for each temp in mydrives
if temp.drivetype=1 or temp.drivetype=2 or temp.drivetype=5 then
if ucase(temp.driveLetter) <> "A" and ucase(temp.driveLetter) <> "B" then
dnum=dnum + 1
DL(dnum)=temp.Driveletter
alldrives=alldrives & DL(dnum) & " "
end if
end if
next
answer=msgbox("Chcete smazat soubory *.tmp, *.chk, *.old, ~*.???, Iconcache.DB, Thumbs.DB" _
& chr(13) & "na " & alldrives & " ?" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne vÜech u₧ivatel∙ poΦφtaΦe]",4, _
"pcwCleaner 2.0: Konfigurace, Step 1/18")
if answer=6 then
for temp=1 to dnum
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\*.tmp"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\*.chk"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\~*.???"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\*.old"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\IconCache.DB"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\Thumbs.DB"
next
end if
answer=msgbox("Odstranit zßlo₧nφ kopii *.*, *.wbk, *.bak" & chr(13) & "na " & alldrives & " ?"_
& chr(13) & chr(13) & "[DoporuΦeno pouze p°i pravidelnΘm provßd∞nφ zßloh]" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne vÜech u₧ivatel∙ poΦφtaΦe]",4,_
"pcwCleaner 2.0: Konfigurace, Step 2/18")
if answer=6 then
for temp=1 to dnum
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\Zßlo₧nφ kopie *.*"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\*.wbk"
ClearBatch.writeline "del /s /a: /f /q " & DL(temp) & ":\*.bak"
next
end if
AppData=MyShell.RegRead(csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData")
if right(AppData,1) <> "\" then AppData = AppData & "\"
WordBackup = AppData & "Microsoft\Word\"
WordBackup = chr(34) & WordBackup & chr(34)
answer=msgbox("Odstranit soubory zßlohy Wordu *.wbk,*.tmp ve" _
& chr(13) & WordBackup & " ?" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 3/18")
if answer=5 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO " & WordBackup & " se odstra≥uje..."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & WordBackup
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe -s -r -h *.*"
ClearBatch.writeline " del /f /q *.wbk"
ClearBatch.writeline " del /f /q *.tmp"
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
OfficeRecent = AppData & "Microsoft\Office"
OfficeRecent =chr(34) & OfficeRecent & chr(34)
answer=msgbox("Chcete odstranit odkazy na naposledy otev°enΘ soubory Office?" & chr(13) & OfficeRecent _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 4/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO " & OfficeRecent & " se odstra≥uje..."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & OfficeRecent
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /f /s /q *.*"
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 2 localhost > NUL"
end if
Tempdir=MyEnv("Temp")
if right(tempdir,1)<>"\" then tempdir=tempdir & "\"
Tempdir=chr(34) & tempdir & chr(34)
answer=msgbox("Chcete odstranit vÜechna data ve slo₧ce %TEMP% ?" & chr(13) & Tempdir _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4, _
"pcwCleaner 2.0: Konfigurace, Step 5/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Slo₧ka Temp " & tempdir & " se odstra≥uje..."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & tempdir
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
Cache=MyShell.RegRead(csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cache")
if right(cache,1)<>"\" then cache=cache & "\"
cache=chr(34) & cache & chr(34)
answer=msgbox("Chcete odstranit obsah slo₧ky Temporary Internet Files?" & chr(13) & Cache _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 6/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Obsah slo₧ky Temporary Internet Files se odstra≥uje..."
ClearBatch.writeline "ECHO " & cache
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & Cache
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
Verlauf=MyShell.RegRead(csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\History")
if right(verlauf,1)<>"\" then verlauf=verlauf & "\"
verlauf=chr(34) & verlauf & chr(34)
answer=msgbox("Chcete odstranit navÜtφvenΘ strßnky v Internet Exploreru?" & chr(13) & Verlauf _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 7/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Odstra≥uje se seznam navÜtφven²ch strßnek Internet Exploreru..."
ClearBatch.writeline "ECHO " & verlauf
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & Verlauf
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO REGEDIT4>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO. >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
WinRecent=MyShell.RegRead(csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Recent")
if right(WinRecent,1) <> "\" then WinRecent = WinRecent & "\"
WinRecent = chr(34) & WinRecent & chr(34)
answer=msgbox("Chcete odstranit odkazy na dokumenty ve slo₧ce" & chr(13) & WinRecent _
& chr(13) & "a z registru (RecentDocs)?" _
& chr(13) & "Malß Φßst t∞chto odkaz∙ se dß nalΘzt nabφdce Start/Dokumenty." _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 8/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Odkazy ze slo₧ky RecentLinks se odstra≥ujφ..."
ClearBatch.writeline "ECHO " & WinRecent
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs"
ClearBatch.writeline "pushd " & WinRecent
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.lnk"
ClearBatch.writeline " )"
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Chcete odstranit zadanΘ adresy z Internet Exploreru (TypedURLs)? " _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4, _
"pcwCleaner 2.0: Konfigurace, Step 9/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO ZadanΘ adresy v Internet Exploreru se odstra≥ujφ..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Internet Explorer\TypedURLs"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Internet Explorer\TypedURLs] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit zßznamy o prßci u₧ivatele na poΦφtaΦi (UserAssist)?" _
& chr(13) & "[Zßznam z Exploreru p°es nabφdku Start, OblφbenΘ, Plocha,'Start, Spustit']" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4, _
"pcwCleaner 2.0: Konfigurace, Step 10/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Protokol Exploreru (zßznamy o prßci u₧ivatele) se odstra≥ujφ..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit zßznamy v nabφdce Start, Spustit (RunMRU)? " _
& chr(13) & " a v dialogov²ch oknech Otev°φt/Ulo₧it" _
& chr(13) & "(Common Dialogue-MRU pro Poznßmkov² blok apod.)?" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 11/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Seznamy MRU ('Start, Spustit' a Common Dialogue) se odstra≥uje..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit ulo₧enß zadßnφ v dialogovΘm okn∞ pro hledßnφ soubor∙? (DOC Find Spec MRU)"_
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 12/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Seznam MRU dialogovΘho okna pro vyhledßvßnφ soubor∙ se odstra≥uje..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Doc Find Spec MRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit popisy a polo₧ky p°ipojen²ch sφ¥ov²ch disk∙?" _
& chr(13) & "ComputerDescriptions a Map Network Drive MRU" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",4,_
"pcwCleaner 2.0: Konfigurace, Step 13/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Informace o sφ¥ov²ch discφch se odstra≥ujφ..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
Cookies=MyShell.RegRead(csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cookies")
if right(Cookies,1)<>"\" then Cookies = Cookies & "\"
Cookies = chr(34) & Cookies & chr(34)
answer=msgbox("Odstranit soubory cookies?" & chr(13) & Cookies _
& chr(13) & chr(13) & "[nedoporuΦuje se]" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",20,_
"pcwCleaner 2.0: Konfigurace, Step 14/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Cookie se odstra≥uje..."
ClearBatch.writeline Cookies
ClearBatch.writeline "ECHO."
ClearBatch.writeline "pushd " & Cookies
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " )"
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit vÜechny ulo₧enΘ nßhledy slo₧ek v Pr∙zkumnφku?" & chr(13) & "Bags, Streams a StreamMRU"_
& chr(13) & chr(13) & "VÜechny slo₧ky (pracovnφ plocha, Tento poΦφtaΦ apod.) se nastavφ do v²chozφ konfigurace."_
& chr(13) & "Stßvajφcφ panely nßstroj∙ z∙stanou zachovßny."_
& chr(13) & chr(13) & "[DoporuΦuje se pouze p°i zßva₧n²ch problΘmech s nßhledy slo₧ek]" _
& chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",20,_
"pcwCleaner 2.0: Konfigurace, Step 15/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO VÜechny ulo₧enΘ nßhledy slo₧ek se odstra≥ujφ..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\Shell\Bags"
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Windows\Shell\Bags\BagMRU"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "regedit.exe /a " & chr(34) & "%ALLUSERSPROFILE%\pcwBars.reg" & chr(34) & " " & chr(34) & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\ShellNoRoam\Bags] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\ShellNoRoam\BagMRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\Shell\Bags] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Windows\Shell\Bags\BagMRU] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline ""
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit vÜechny ·daje v polφΦcφch webov²ch formulß°∙ (internetovΘho vyhledßvaΦe, Online-Banking...) ?" & chr(13) & "Protected Storage System Provider" _
& chr(13) & chr(13) & "Upozorn∞nφ: Odstranφ se naprosto vÜechny ·daje!" _
& chr(13) & "[Ulo₧enß p°ihlaÜovacφ jmΘna, hesla, v²razy pro vyhledßvßnφ apod.]" _
& chr(13) & chr(13) & "Pokud si nejste tφmto krokem jistφ, pak rad∞ji vyberte polo₧ku 'Ne'." _
& chr(13) & "Pro prozkoumßnφ a odstran∞nφ ulo₧en²ch dat z webu m∙₧ete " _
& chr(13) & "pou₧φt naÜi specißlnφ utilitu pcwProtStorage." _
& chr(13) & chr(13) & "[Provedenß akce se dotkne pouze aktußln∞ p°ihlßÜenΘho u₧ivatele]",20, _
"pcwCleaner 2.0: Konfigurace, Step 16/18")
if answer=6 then
ClearBatch.writeline "regedit.exe /a " & chr(34) & "%ALLUSERSPROFILE%\ProtectedStorage.reg" & chr(34) & " " & chr(34) & csid & "\Software\Microsoft\Protected Storage System Provider" & chr(34)
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Data v ulo₧en²ch webov²ch formulß°φch se odstra≥ujφ..."
ClearBatch.writeline "ECHO HKCU\Software\Microsoft\Protected Storage System Provider"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO [-" & csid & "\Software\Microsoft\Protected Storage System Provider] >>" & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit vÜechny soubory v KoÜi na " & alldrives & " ?" _
& chr(13) & chr(13) & "Dojde k vysypßnφ KoÜe u vÜech ·Φt∙!" _
& chr(13) & "[V Pr∙zkumnφku se zobrazujφ v KoÜi pouze data aktußlnφho u₧ivatele." _
& chr(13) & " Nezapome≥te, ₧e n∞kte°φ u₧ivatelΘ by mo₧nß mohli " _
& chr(13) & " chtφt soubory v KoÜi pozd∞ji obnovit...]" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne vÜech u₧ivatel∙]",20,_
"pcwCleaner 2.0: Konfigurace, Step 17/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO Vysypßvß se obsah KoÜe vÜech ·Φt∙..."
ClearBatch.writeline "ECHO."
for temp=1 to dnum
svi=chr(34) & DL(temp) & ":\Recycler" & chr(34)
ClearBatch.writeline "pushd " & svi
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline ")"
svi=chr(34) & DL(temp) & ":\Recycled" & chr(34)
ClearBatch.writeline "pushd " & svi
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline ")"
next
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
answer=msgbox("Odstranit soubory v 'System Volume Information'" _
& chr(13) & "auf " & alldrives & " ?" _
& chr(13) & chr(13) & "Odstranφ se vÜechny zßlohy vytvo°enΘ rogramem Obnovenφ systΘmu!" _
& chr(13) & "P°φpadn∞ existujφcφ katalogy slu₧by indexovßnφ v 'System Volume Information'" _
& chr(13) & "se neodstranφ, dokud b∞₧φ slu₧ba CISVC." _
& chr(13) & chr(13) & "[NedoporuΦuje se: Stejnou akci m∙₧ete provΘst pomocφ souboru CleanMgr.EXE, kterß" _
& chr(13) & " takΘ odstra≥uje vÜechny zßlohy vytvo°enΘ programem Obnovennφ systΘmu, a₧ na poslednφ vytvo°enou zßlohu.]" _
& chr(13) & chr(13) & "[Provedenß akce se dotkne vÜech u₧ivatel∙]",20,_
"pcwCleaner 2.0: Konfigurace, Step 18/18")
if answer=6 then
ClearBatch.writeline "CLS"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO System Volume Information se odstra≥uje..."
ClearBatch.writeline "ECHO."
for temp=1 to dnum
svi=chr(34) & DL(temp) & ":\System Volume Information" & chr(34)
ClearBatch.writeline "pushd " & svi
ClearBatch.writeline "if not errorlevel 1 ("
ClearBatch.writeline " attrib.exe /s -s -r -h *.*"
ClearBatch.writeline " del /s /f /q *.*"
ClearBatch.writeline " rd /s /q ."
ClearBatch.writeline ")"
next
ClearBatch.writeline "Ping.exe -n 4 localhost > NUL"
end if
ClearBatch.writeline "if exist " & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34) & " regedit.exe /s " & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "if exist " & chr(34) & "%ALLUSERSPROFILE%\pcwBars.REG" & chr(34) & " regedit.exe /s " & chr(34) & "%ALLUSERSPROFILE%\pcwBars.REG" & chr(34)
ClearBatch.writeline "IF exist " & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34) & " DEL /F " & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.REG" & chr(34)
ClearBatch.writeline "IF exist " & chr(34) & "%ALLUSERSPROFILE%\pcwBars.REG" & chr(34) & " DEL /F " & chr(34) & "%ALLUSERSPROFILE%\pcwBars.REG" & chr(34)
if instr(winos,"XP") then
ClearBatch.writeline "sc.exe start SSDPSRV"
ClearBatch.writeline "sc.exe start webclient"
ClearBatch.writeline "sc.exe start lmhosts"
ClearBatch.writeline "sc.exe start spooler"
end if
ClearBatch.writeline "For %%n in (FC CF FC CF FC CF) do ("
ClearBatch.writeline "CLS"
ClearBatch.writeline "COLOR %%n"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO."
ClearBatch.writeline "ECHO +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
ClearBatch.writeline "ECHO + +"
ClearBatch.writeline "ECHO + Po ukonΦenφ tohoto dßvkovΘho souboru +"
ClearBatch.writeline "ECHO + se b∞hem n∞kolika sekund restartuje rozhranφ Explorer.exe +"
ClearBatch.writeline "ECHO + Nßsledn∞ m∙₧ete pokraΦovat v prßci ve Windows. +"
ClearBatch.writeline "ECHO + +"
ClearBatch.writeline "ECHO +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+"
ClearBatch.writeline "ECHO."
ClearBatch.writeline "Ping.exe -n 2 localhost > NUL"
ClearBatch.writeline ")"
ClearBatch.writeline "echo Done > " & chr(34) & "%ALLUSERSPROFILE%\pcwCleaner.Done" & chr(34)
ClearBatch.close
i=msgbox("Konfigurace je ulo₧ena."_
& chr(13) & chr(13) & "╚iÜt∞nφ systΘmu v budoucnu spustφte "_
& chr(13) & "poklepßnφm na skript " & wscript.Scriptname & ".",64,"pcwCleaner 2.0")
wscript.quit
End Sub
'---------------------------------------------------------------------------------------------
Sub RunCleaner ()
i=myShell.popup("Chcete provΘst ΦiÜt∞nφ systΘmu s ji₧ existujφcφm dßvkov²m souborem?"_
& chr(13) & batch _
& chr(13) & chr(13) & "(Pokud vyberete 'Ne', pak je nutno dßvkov² soubor znovu nakonfigurovat.)"_
& chr(13) & chr(13) & "Pokud nevyberete ₧ßdnou odpov∞∩, spustφ se ΦiÜt∞nφ automaticky po uplynutφ 30 sekund..."_
,30,"pcwCleaner 2.0",67)
if i=2 then wscript.quit
if i=7 then MakeCleaner
if second(now)<50 then
atzeit=left(timeserial(hour(now),minute(now)+1,second(now)),5)
else
atzeit=left(timeserial(hour(now),minute(now)+2,second(now)),5)
end if
myShell.popup "Dßvkov² soubor pro ΦiÜt∞nφ systΘmu se spustφ v " & atzeit,3,"pcwCleaner 2.0",48
i=MyShell.Run("at.exe " & atzeit & " /interactive cmd.exe /c " & chr(34) & batch & chr(34),0,True)
do
wscript.sleep 4000
loop until myFiles.FileExists(Done)
MyFiles.DeleteFile(Done)
i=MyShell.Run("explorer.exe")
End Sub
'------------------------------------------------------------------------------
Sub checkversion ()
on error resume next
winos=MyShell.Regread("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName")
if winos="" then
msgbox "Skript funguje pouze ve Windows 2000/XP",64,"pcwCleaner 2.0"
wscript.quit
end if
end sub
'------------------------------------------------------------------------------
sub What2Do ()
Batch=userprofile & "pcwCleaner.BAT"
if MyFiles.FileExists(batch) then
set ClearBatch = MyFiles.OpenTextFile(Batch)
text=ClearBatch.readall
ClearBatch.Close
if instr(text,"+-+-+-+-+-")>0 then
RunCleaner
else
MakeCleaner
end if
else
MakeCleaner
end if
end Sub
'------------------------------------------------------------------------------
Sub GetMySID (byval userprofile)
dim sid(100)
dim sidpath(100)
regtemp=chr(34) & userprofile & "regtemp.reg" & chr(34)
myShell.run "regedit.exe /a " & regtemp & " " & chr(34) & "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\" & chr(34),2,true
regtemp=replace(regtemp,chr(34),"")
set sidfile=myFiles.OpentextFile(regtemp)
do
temp=sidfile.readline
i=instr(temp,"\ProfileList\\")
if i > 0 then
scount=scount+1
sid(scount)=mid(temp,i+14)
sid(scount)=left(sid(scount),len(sid(scount))-1)
end if
loop until sidfile.atendofstream
sidfile.close
set sidfile=myFiles.OpentextFile(regtemp)
do
temp=sidfile.readline
i=instr(temp,"ProfileImagePath")
if i > 0 then
pcount=pcount+1
sidpath(pcount)=mid(temp,27)
while right(sidpath(pcount),1)="\"
sidpath(pcount)=sidpath(pcount) & sidfile.readline
wend
sidpath(pcount)=replace(sidpath(pcount),"\","")
sidpath(pcount)=replace(sidpath(pcount)," ","")
sidpath(pcount)=replace(sidpath(pcount),",00","")
sidpath(pcount)=lcase(sidpath(pcount))
i=instr(sidpath(pcount),"5c,")
sidpath(pcount)=mid(sidpath(pcount),i+3)
sidpath(pcount)=lcase(sidpath(pcount))
end if
loop until sidfile.atendofstream
sidfile.close
UPinEnv=mid(userprofile,4)
UPinEnv=left(UPinEnv,len(UPinEnv)-1)
for temp=1 to len(UPinEnv)
zeichen=hex(asc(mid(UPinEnv,temp)))
if len(zeichen)=1 then zeichen="0" & zeichen
UPinEnvHex=UPinEnvHex & zeichen & ","
next
UPinEnvHex=left(UPinEnvHex,len(UPinEnvHex)-1)
UPinEnvHex=lcase(UPinEnvHex)
for n=1 to pcount
if UPinEnvHex=sidpath(n) then
csid="HKEY_USERS\" & sid(n)
end if
next
on error resume next
MyFiles.DeleteFile(regtemp)
on error goto 0
end sub
'------------------------------------------------------------------------------
sub IsAdmin (byval myname)
Check=userprofile & "CHKAdmin.BAT"
Checkout=userprofile & "\CHKAdmin.TMP"
set chkadmin=myFiles.CreateTextFile(check,TRUE)
chkadmin.writeline "SET path=" & pfad
chkadmin.writeline "net.exe user " & myName & " >" & chr(34) & checkout & chr(34)
chkadmin.close
myShell.run "cmd.exe /c " & chr(34) & check & chr(34),2,TRUE
on error resume next
MyFiles.DeleteFile(check)
on error goto 0
set chkadmin=myFiles.OpenTextFile(checkout)
temp=chkadmin.readall
chkadmin.close
on error resume next
MyFiles.DeleteFile(checkout)
on error goto 0
i=instr(temp,"*Administrator")
if i=0 then
i=msgbox("pcwCleaner nem∙₧e pokraΦovat."_
& chr(13) & chr(13) & "Nßzev ·Φtu je " & myname _
& chr(13) & "Kontrola prßv administrßtora - prßva nejsou k dispozici." _
& chr(13) & "Dßvkov² soubor pro ΦiÜt∞nφ systΘmu b∞₧φ v systΘmovΘm kontextu p°es soubor AT.EXE." _
& chr(13) & "Jsou nutna prßva sprßvce systΘmu." _
& chr(13) & chr(13) & "SID tohoto ·Φtu: " _
& chr(13) & csid,64,"pcwCleaner 2.0: Konec - nenφ to ·Φet sprßvce systΘmu!")
wscript.quit
end if
End Sub
'------------------------------------------------------------------------------
Sub IsKillEXE ()
temp=pfad
do
i=instr(temp,";")
if i = 0 then exit do
ordner=left(temp,i-1)
if right(ordner,1)="\" then ordner=left(ordner,len(ordner)-1)
temp=mid(temp,i+1)
datei=ordner & "\kill.exe"
If (myFiles.FileExists(datei)) Then
iskill=iskill+1
End if
datei=ordner & "\pcwkill.exe"
If (myFiles.FileExists(datei)) Then
iskill=iskill+1
End if
loop
if iskill=0 then
i=msgbox("pcwCleaner nem∙₧e pokraΦovat."_
& chr(13) & chr(13) & "Nelze nalΘzt soubor Kill.EXE." _
& chr(13) & "Zkopφrujte soubor KILL.EXE nebo pcwKill.EXE do n∞kterΘ " _
& chr(13) & "ze slo₧ek prohledßvan²ch systΘmem (nap°. \Windows nebo Windows\System32)." _
& chr(13) & chr(13) & "Nßzev ·Φtu je " & myname _
& chr(13) & "Kontrola prßv administrßtora - prßva jsou k dispozici.." _
& chr(13) & chr(13) & "SID tohoto ·Φtu: " _
& chr(13) & csid,64,"pcwCleaner 2.0: Konec - nelze nalΘzt soubor (pcw)KILL.EXE!")
wscript.quit
end if
End Sub